#:kivy 1.0.9
#:import DisableableButton ui.disableable_button.DisableableButton

<LoadGameScreen>:
    load_button: load_button
    input_id: input_id
    input_pin: input_pin
    BoxLayout:
        orientation: 'vertical'
        size: root.size
        BoxLayout:
            orientation: 'horizontal'
            size_hint_y: None
            height: root.height*0.1
            Button:
                color: 1,0,0,1
                text: _('Back')
                on_release: root.go_back()
            DisableableButton:
                color: [0,1,0,1] if self.enabled else [1,1,1,1]
                id: load_button
                text: _('Next')
                on_release: root.on_load_pressed()
        Label:
            text: _('Game Id')
        TextInput:
            id: input_id
            size_hint_y: 0.4
            text: root.game_id
            on_text: root.update_id(args[1])
            multiline: False
            on_text_validate: root.on_load_pressed()
            focus: True
            font_size: 0.6 * self.height
        Label:
            text: _('Pin code')
        TextInput:
            id: input_pin
            size_hint_y: 0.4
            text: root.pin_code
            on_text: root.update_pin(args[1])
            multiline: False
            on_text_validate: root.on_load_pressed()
            font_size: 0.6 * self.height
        Label:
            text: _('Game id\n server: ') + root.HOST
        Label:
        Label:


